package com.hyjx.framework.component.interfaceservice.interfacelog;

import com.hyjx.framework.orm.IBaseModel;

import java.text.SimpleDateFormat;
import java.util.Date;

public class AttachLogModel implements IBaseModel{
	private String id;
	private String ip;
	private Date time;
	
	private String starttime;
	private String endtime;
	
	private String userid;
	private String srvid;
	
	private String username;
	private String srvname;
	private String result;
	private String srv_parameter;
	private String amount;
	private String time_start;
	private String time_end;
	private String time_t;
	private String code;
	private String name;
	private String error_msg;
	private String userlogname;
	public String getUserlogname() {
		return userlogname;
	}
	public void setUserlogname(String userlogname) {
		this.userlogname = userlogname;
	}
	public String getError_msg() {
		return error_msg;
	}
	public void setError_msg(String error_msg) {
		this.error_msg = error_msg;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getTime_t() {
		if (time_t != null || time == null)
			return time_t;
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return format.format(getTime());
	}
	public void setTime_t(String time_t) {
		this.time_t = time_t;
	}
	public String getTime_start() {
		return time_start;
	}
	public void setTime_start(String time_start) {
		this.time_start = time_start;
	}
	public String getTime_end() {
		return time_end;
	}
	public void setTime_end(String time_end) {
		this.time_end = time_end;
	}
	public String getResult() {
		return result;
	}
	public void setResult(String result) {
		this.result = result;
	}
	public String getSrv_parameter() {
		return srv_parameter;
	}
	public void setSrv_parameter(String srv_parameter) {
		this.srv_parameter = srv_parameter;
	}
	public String getAmount() {
		return amount;
	}
	public void setAmount(String amount) {
		this.amount = amount;
	}
	public String getStarttime() {
		return starttime;
	}
	public void setStarttime(String starttime) {
		this.starttime = starttime;
	}
	public String getEndtime() {
		return endtime;
	}
	public void setEndtime(String endtime) {
		this.endtime = endtime;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public String getSrvid() {
		return srvid;
	}
	public void setSrvid(String srvid) {
		this.srvid = srvid;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getSrvname() {
		return srvname;
	}
	public void setSrvname(String srvname) {
		this.srvname = srvname;
	}
	
	
	@Override
	public String getModuleName() {
		return "com.hyjx.framework.component.interfaceservice.interfacelog";
	}
}
